home *** CD-ROM | disk | FTP | other *** search
/ Crosscountry USA Photo Safari / Crosscountry USA Photo Safari.iso / Data / cc_base / pak00_16bit_f.pk3 / game_options.gl.p < prev    next >
Text File  |  2003-09-19  |  7KB  |  241 lines

  1. {
  2.   ActiveWhileHidden = TRUE; 
  3.   Hidden = TRUE;
  4.      
  5.   ChildID = {
  6.    
  7.     GuiAnimation("plate") {
  8.       AnimationID = "anim/guage_gui/guage_window.pcx";
  9.       X = 0;
  10.       Y = 0;
  11.       Width = 500;
  12.       Height = 360;
  13.     },          
  14.  
  15.     GuiAnimation("guages") {
  16.       AnimationID = "anim/guage_gui/window/guagy.anm";
  17.       X = 0;
  18.       Y = 0;
  19.       Width = 340;
  20.       Height = 360;
  21.     },
  22.  
  23. /*
  24.  
  25.         GuiTextInput("volume_level") {
  26.       X = 153;
  27.       Y = 235;
  28.       Width = 120;
  29.       Height = 22;
  30.       FontID = "font/square_black_on_gray_9.tf";
  31.       ScriptID = Script {
  32.        @animate { 
  33.          ResPropSetInt(SELF,"InputText",
  34.            ResPropGetInt(
  35.              GuiSiblingByName("volume"),
  36.              "Value"
  37.            )            
  38.          );
  39.        }
  40.       };
  41.     },
  42. */
  43.     
  44.     GuiScrollBar ("volume") {
  45.       X = 150;
  46.       Y = 55;
  47.       MaxValue= 100;
  48.       MinValue= 0;
  49.       FontID = "font/square_black_on_gray_9.tf";
  50.       TextID = Mangle(88/*"Sound Volume"*/);
  51.       VerticalAlign = ABOVE;
  52.       AnimationID = "gui/square/volume/sb_background.pcx";
  53.       Height = 80;
  54.       Kind = VERTICAL;
  55.       ScriptID = Script {
  56.         @activate {
  57.           ResParseEvent(GuiChildByName(SELF,"thumb"),"@activate");
  58.         }
  59.         @show {
  60.           ResPropSetInt(SELF,"Value",(65535 * CVarGetInt("AudioVolume")) / 100);
  61.         }
  62.       };      
  63.       ChildID = {
  64.         GuiButton("thumb") {
  65.           StyleID = "gui/square/volume/sb_thumb.gbs";
  66.           ScriptID = Script {
  67.             @activate {
  68.               resid Sound;          
  69.               Sound = ResByName("sound/toggle.wav");
  70.               AudioPlay(Sound);
  71.               AudioSetVolume( (65535 *(100 - ResPropGetInt(GuiParent(SELF),"Value")) ) / 100 );
  72.             }
  73.           }; 
  74.         },
  75.         GuiButton("dec") {
  76.         },
  77.         GuiButton("inc") {
  78.         }
  79.       };
  80.     },
  81.  
  82.         GuiTextInput("save_game_dir") {
  83.       X = 220;
  84.       Y = 130;
  85.       InputDisabled = TRUE;
  86.       Width = 210;
  87.       WordWrap = TRUE;
  88.       Height = 44;      
  89.       TextX = -5;      
  90.       InsertCursorID = "gui/dash/tab/insert_cursor.pcx";
  91.       OverwriteCursorID = "gui/dash/tab/overwrite_cursor.pcx";      
  92.       FontID = "font/square_black_on_gray_9.tf";
  93.       InputFontID = "font/verdana_9_black.tf";
  94.       TextID = Mangle(89/*"Saved Games Directory:"*/);
  95.       VerticalAlign = ABOVE;      
  96.       ScriptID = Script {
  97.        @show { 
  98.          ResPropSetStr(SELF,"InputText",CVarGetStr("SavedGameDir"));
  99.        }
  100.       };
  101.     },
  102.     
  103.         GuiTextInput("save_travel_log_dir") {
  104.       X = 220;
  105.       Y = 180;
  106.       InputDisabled = TRUE;
  107.       Width = 210;
  108.       WordWrap = TRUE;
  109.       Height = 44;      
  110.       TextX = -5;      
  111.       InsertCursorID = "gui/dash/tab/insert_cursor.pcx";
  112.       OverwriteCursorID = "gui/dash/tab/overwrite_cursor.pcx";      
  113.       FontID = "font/square_black_on_gray_9.tf";
  114.       InputFontID = "font/verdana_9_black.tf";      
  115.       TextID = Mangle(90/*"Saved Travel Logs Directory:"*/);
  116.       VerticalAlign = ABOVE;      
  117.       ScriptID = Script {
  118.        @show { 
  119.          ResPropSetStr(SELF,"InputText",CVarGetStr("SavedTravelLogDir"));
  120.        }
  121.       };
  122.     },
  123.     GuiTextInput("save_scenario_dir") {
  124.       X = 220;
  125.       Y = 230;
  126.       InputDisabled = TRUE;
  127.       WordWrap = TRUE;
  128.       Height = 44;
  129.       Width = 210;
  130.       TextX = -5;      
  131.       InsertCursorID = "gui/dash/tab/insert_cursor.pcx";
  132.       OverwriteCursorID = "gui/dash/tab/overwrite_cursor.pcx";      
  133.       FontID = "font/square_black_on_gray_9.tf";
  134.       InputFontID = "font/verdana_9_black.tf";      
  135.       TextID = Mangle(91/*"Saved Scenarios Directory:"*/);
  136.       VerticalAlign = ABOVE;      
  137.       ScriptID = Script {
  138.        @show { 
  139.          ResPropSetStr(SELF,"InputText",CVarGetStr("SavedScenarioDir"));
  140.        }
  141.       };
  142.     },
  143.         GuiTextInput("hardware_mouse_label") {
  144.       X = 250;
  145.       Y = 80;
  146.       InputDisabled = TRUE;
  147.       Width = 180;
  148.       TextX = -30;
  149.       FontID = "font/square_black_on_gray_9.tf";
  150.       TextID = Mangle(92/*"Hardware Cursor:"*/);
  151.       VerticalAlign = ABOVE;      
  152.       Height = 22;
  153.     },
  154.     
  155.     GuiButtonGroup("hardware_mouse_on") {
  156.       X = 250;
  157.       Y = 80;
  158.       RadioGroupID = 1;
  159.       ScriptID = Script {
  160.         @show {
  161.           if ( CVarGetInt("UseHardwareMouse") == 1) {
  162.             ResPropSetResID(SELF,"RadioGroupSelectedID",SELF);
  163.           } else {
  164.             ResPropSetResID(SELF,"RadioGroupSelectedID",GuiSiblingByName("hardware_mouse_off"));
  165.           }
  166.         }
  167.         @activate {
  168.           CVarSetInt("UseHardwareMouse",1);
  169.         }
  170.       };
  171.       ChildID = {
  172.               GuiButton("hardware_mouse_on_true") {
  173.                 HorizontalAlign = RIGHTOF;
  174.           HorizontalPadding = 6;
  175.               StyleID = "gui/bs/radiounsel.gbs";
  176.               TextID = Mangle(93/*"On"*/);
  177.           FontID =  "font/verdana_9_black.tf";
  178.              },          
  179.  
  180.             GuiButton("hardware_mouse_on_false") {
  181.                 HorizontalAlign = RIGHTOF;
  182.           HorizontalPadding = 6;            
  183.               StyleID = "gui/bs/radiosel.gbs";
  184.               TextID = Mangle(94/*"On"*/);
  185.           FontID =  "font/verdana_9_black.tf";   
  186.              }        
  187.       };
  188.     },
  189.     
  190.     GuiButtonGroup("hardware_mouse_off") {
  191.       X = 290;
  192.       Y = 80;
  193.       RadioGroupID = 1;
  194.       ScriptID = Script {
  195.         @show {
  196.           if ( CVarGetInt("UseHardwareMouse") == 0) {
  197.             ResPropSetResID(SELF,"RadioGroupSelectedID",SELF);
  198.           }        
  199.         }
  200.         @activate {
  201.           CVarSetInt("UseHardwareMouse",0);
  202.         }
  203.       };
  204.       ChildID = {
  205.               GuiButton("hardware_mouse_off_true") {
  206.                 HorizontalAlign = RIGHTOF;
  207.           HorizontalPadding = 6;
  208.               StyleID = "gui/bs/radiounsel.gbs";
  209.               TextID = Mangle(95/*"Off"*/);
  210.           FontID = "font/verdana_9_black.tf";
  211.              },          
  212.  
  213.             GuiButton("hardware_mouse_off_false") {
  214.                 HorizontalAlign = RIGHTOF;
  215.           HorizontalPadding = 6;            
  216.               StyleID = "gui/bs/radiosel.gbs";
  217.               TextID = Mangle(96/*"Off"*/);
  218.           FontID =  "font/verdana_9_black.tf"; 
  219.              }        
  220.       };
  221.     },
  222.  
  223.     GuiButton("main_menu") {
  224.       X = 150;
  225.       Y = 280;
  226.       TextID = Mangle(97/*"Main Menu"*/);
  227.       StyleID = "gui/bs/square.gbs";
  228.       FontID = "font/square_black_on_gray_9.tf";
  229.       Width = 160;
  230.       AutoSize = HEIGHT;
  231.       ScriptID = Script {
  232.         @activate {
  233.           resid mc;
  234.              mc = ResByName("splash_screen.gl/menu_controller");
  235.           ResPropSetResID(mc,"panel_to_display", ResByName("main_menu.gl"));
  236.         }
  237.       };
  238.     }
  239.   };
  240. }
  241.